﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace PBO.Game
{
    public enum PokemonState : int
    {
        No,
        Poison,
        Paralysis,
        Burn,
        Freeze,
        Sleep,
        Toxin
    }

    public static class PokemonStateHelper
    {
        public static Bitmap GetStateImg(this PokemonState state)
        {
            switch (state)
            {
                case PokemonState.Burn:
                    return Properties.Resources.State_BRN;
                case PokemonState.Freeze:
                    return Properties.Resources.State_FRZ;
                case PokemonState.Paralysis:
                    return Properties.Resources.State_PAR;
                case PokemonState.Sleep:
                    return Properties.Resources.State_SLP;
                case PokemonState.Toxin:
                case PokemonState.Poison:
                    return Properties.Resources.State_PSN;
                default:
                    return null;
            }
        }

        public static string GetStateString(this PokemonState state)
        {
            switch (state)
            {
                case PokemonState.Burn:
                    return "(烧伤)";
                case PokemonState.Freeze:
                    return "(冻结)";
                case PokemonState.Paralysis:
                    return "(麻痹)";
                case PokemonState.Sleep:
                    return "(睡眠)";
                case PokemonState.Toxin:
                case PokemonState.Poison:
                    return "(中毒)";
                default:
                    return string.Empty;
            }
        }
    }
}
